<div class="fadeIn">
    <br>
    <ol class="breadcrumb">
    <li class="active"><span class="glyphicon glyphicon-home" style="color:#23527c"></span>&nbsp;<mainpage></mainpage></li>
    <li class="active">监控工作台 / 预警管理 / 预警明细</li>
</ol>  
    <form class="marB15 clearfix form-inline">
        <div class="marT15 left marR10">
            <span class="search-name lineH25">时间选择</span>
            <div class="controls">
                <div class="input-prepend input-group">
                    <span class="input-group-addon"><i class="glyphicon glyphicon-calendar fa fa-calendar"></i></span><input type="text" readonly style="width: 155px" name="reservation" id="warnMonitorDate" class="form-control" value="2017-3-21 - 2017-5-21" />
                     <span class="input-group-addon" ng-click='clearTime()'>清空</span>
                </div>
            </div>
        </div>
        <div class="marT15 left marR10">
            <span class="search-name">对象类型：</span>
            <select class="form-control1 svrNodeName" ng-model="searchData.objType" name="objType">
                <option value="">全部</option>
                <option ng-repeat="row in listData1" value={{row.DICVALUE}}>{{row.DICVALUENAME}}</option>
            </select>
        </div>
         <div class="left marR10 marT15">
            <span class="search-name">预警状态：</span>
            <select class="form-control1" ng-model="searchData.dealStatus" name="dealStatus">
                <option value=''>全部</option>
                <option value='0'>待处理</option>
                <option value='1'>处理中</option>
                <option value='2'>处理完成</option>
               <!--  <option value='3'>不需要处理</option> -->
            </select>
        </div>  
         <a class=" btn btn-primary btn-sm left marT15" ng-click='search()'><span class="glyphicon glyphicon-search"></span></a>      
    </form>
  <div class="table-box">

    <table class="table table-bordered table-striped text-center bg-info">
        <thead >
        <tr class="info">
            <th class="text-center">序号</th>
            <th class="text-center">预警时间</th>
            <th class="text-center">监控对象</th>
            <th class="text-center">异常值</th>
            <th class="text-center">阀值</th>
            <th class="text-center">预警级别</th>
            <th class="text-center">预警内容</th>
            <th class="text-center">预警处理人</th>
            <th class="text-center">电话</th>
            <th class="text-center">邮箱</th>
            <th class="text-center">预警处理状态</th>
        </tr>
        </thead>
        <tbody id='appList'>
        <tr ng-repeat="Item in result">
            <td>{{ $index+1 }}</td>
            <td style="min-width: 160px">{{ Item.insertTime }}</td>
            <td class="w85">{{ Item.objName }}</td>
            <td class="w70">{{ Item.warnValue }}</td>
            <td class="w70">[{{ Item.lowerValue }}-{{ Item.highValue}}]{{ Item.units}}</td>
            <td class="w85">{{ Item.warnLevel }}</td>
            <td style="min-width: 200px; word-break: break-all;">{{ Item.msg }}</td>
            
            <td class="w70 merge-rows" style="padding:0">
              <p ng-repeat="user in Item.user">{{ user.userName }}</p>
            </td>
            <td class="w70 merge-rows" style="padding:0">
              <p ng-repeat="user in Item.user">{{ user.phoneNumber }}</p>
            </td>
            <td class="w85 merge-rows" style="padding:0">
              <p ng-repeat="user in Item.user">{{ user.mailBox }}</p>
            </td>
            <td class="w115">
               <span ng-if='"0"==Item.dealStatus' data-toggle="modal" data-target="#add1" ng-click='handle(Item.objId,Item.warnLevel,Item.recId,"0")'><a>待处理</a></span>
               <span ng-if='"1"==Item.dealStatus' data-toggle="modal" data-target="#add1" ng-click='handle(Item.objId,Item.warnLevel,Item.recId,"1")'><a>处理中</a></span>
               <span ng-if='"2"==Item.dealStatus' >处理完成</span>
              <!--  <span ng-if='"3"==Item.dealStatus' >不需要处理</span> -->
            </td>
            <!-- <td class="w115">{{ Item.dealStatus }}</td> -->
        </tr>
        <!-- <tr>
            <td>2</td>
            <td>2017年1月17日13点55分55秒</td>
            <td>缓存队列</td>
            <td>780万</td>
            <td>[0-100]万</td>
            <td>2</td>
            <td>缓存队列使用率达到97.5%，请控制短信接入端速率</td>
            <td>张三</td>
            <td>180119*****</td>
            <td>********@sdfew.com</td>
            <td>待处理</td>
        </tr> -->
        
        </tbody>
    </table>
  </div>

    <div class="flip">
        <page></page>
    </div>
</div>

<!--添加程序弹窗-->
<div class="modal fade" id="add1" tabindex="-1" role="dialog" aria-labelledby="add11">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="add11">{{popup}}对象</h4>
            </div>
            <div class="modal-body">
                <div class="row marB15">
                   
                   <div class="col-xs-6">
                            <label class="search-name left">处理人：</label>
                            <select class="form-control line4 right" id='userid' ng-model='handleData.userId' value='--请选择--' ng-options='item.userId as item.userId for item in warnRecv'>
                               
                            </select>
                    </div>
                     <div class="col-xs-6">
                            <label class="search-name left">状态：</label>
                            <select class="form-control line4 right" id='dealStatus' ng-model='handleData.dealStatus'>
                              <option value='0'>待处理</option>
                              <option value='1'>处理中</option>
                              <option value='2'>处理完成</option>
                             <!--  <option value='3'>不需要处理</option> -->
                            </select>
                    </div>
                    
                </div>
               
                <div class="marT15 clearfix row">
                    <div class="col-xs-12">
                        <label class="left"><span>说明 ：</span></label>
                        <textarea class="left form-control" ng-model='handleData.remark' id="desc"></textarea>
                    </div>
                </div>
                <br>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary btn-sm" ng-click='handleSave()'>保存</button>
            </div>
        </div>
    </div>
</div>
<!-- 添加程序结束 -->
<!-- 加载框 -->
  <span class='loaded' ng-show='loaded'><img  src="img/load.gif"></span>
<!-- 加载框 完成-->
